package org.smile.design.decorator.homework;

public class Application {
    public static void main(String[] args) {
        Leave leave = new Leave();
        leave.setName("");
        leave.setNumber(2);
        leave.setReason("");
        leave.approval();

        System.out.println("============================");

        FormProcess newLeave = new ManagerFormProcess(new NameFormProcess(new BaseFormProcess()));
        System.out.println(newLeave.form());
        System.out.println(newLeave.approval());
        newLeave.handleApprove();


    }
}
